<template>
    <!-- 学生列表 -->
    <div class="inquire">
        <input type="text" placeholder="请输入姓名">
        <input type="text" placeholder="请输入学籍号或身份证">
        <input type="text" placeholder="请输入账号">
        <button>查询</button>
    </div>
    <el-table :data="tableData.list" border stripe style="font-size: 12px;" :cell-style="{ 'text-align': 'center' }">
        <el-table-column type="index" label="序号" width="50" header-align="center" />
        <el-table-column prop="school" label="所属学校" header-align="center" />
        <el-table-column prop="gradeclass" label="年级班级" width="100" header-align="center" />
        <el-table-column prop="studentname" label="学生姓名" header-align="center"/>
        <el-table-column prop="sex" label="性别" header-align="center" />
        <el-table-column prop="studentCode" label="学籍号" width="100" header-align="center" />
        <el-table-column prop="idType" label="证件类型" header-align="center" />
        <el-table-column prop="idNumber" label="证件号码" width="200" header-align="center" />
        <el-table-column prop="account" label="账号" width="150" header-align="center" />
    </el-table>
</template>

<script setup>
import { onMounted, ref } from 'vue';
import { student_List } from '../../../utils/api'

var tableData = ref({
    list: []
})

onMounted(() => {
    student_List().then((res) => {
        tableData.value.list = res.data.studentList
    })
})

</script>

<style lang="scss" scoped>
.inquire {
    height: auto;

    input {
        width: 150px;
        border-radius: 3px;
        line-height: 20px;
        border: 1px solid rgba(0, 0, 0, 0.247058823529412);
        outline: none;
        font-size: 12px;
        padding: 3px;
        margin-bottom: 10px;
    }

    input:nth-child(2) {
        margin-left: 20px;
    }
    input:nth-child(3) {
        margin-left: 20px;
    }

    ::-webkit-input-placeholder {
        color: rgb(217, 217, 217);
    }

    button {
        background-color: #1890ff;
        width: 60px;
        height: 28px;
        color: #fff;
        border: none;
        border-radius: 3px;
        margin-left: 20px;
        font-size: 12px;
    }
}
</style>